package com.zu.commu.dataSource.imp;

import com.zu.commu.context.ServerContext;
import com.zu.commu.dataSource.NcsDataSource;
import com.zu.commu.dataSource.imp.pool.NcsDataSourceManager;

public class NcsDataSourceFactory
{
  public static NcsDataSource getDataSource(String dataSourceName)
  {
    NcsDataSourceManager m = ServerContext.DBSManager;
    NcsDataSourceImp ds = new NcsDataSourceImp();
    ds.createDataSource(m, dataSourceName);
    return ds;
  }

  public static String[] getDataSourceNames() {
    return ServerContext.dataSourceNames;
  }
}